const { comment } = require("vuepress-plugin-comment2");
module.exports = {
    // 站点配置
    lang: 'zh-CN',
    port: 80,
    title: 'eightgames的小屋🏠',
    description: '我的秘密基地',

    // 主题和它的配置
    theme: '@vuepress/theme-default',
    themeConfig: {
        docsRepo: 'https://gitee.com/kaiyan3/eightgames',
        docsBranch: 'main',
        docsDir: 'docs',
        editLinkPattern: ':repo/edit/:branch/:path',
        logo: 'images/青青草原年级第一_透明背景_正方形.png',

        navbar: [
            {
                text: '人物志🚶‍♂️',
                children: [
                    '/about/eightgames.md',
                    '/about/young-emo.md',
                    '/about/瓜刀.md'
                ],
            },
            {
                text: '小说📜',
                children: [
                    '/fiction/灰拳.md',
                    '/fiction/龙之谷/龙之谷.md',
                    '/fiction/畸形的野草.md',
                ]
            },

            {
                text: '工具🛠️',
                children: [
                    '/tools/bpm.md',
                    '/tools/calculator.md',
                    '/tools/comment.md',
                    {
                        text: 'vscode snippet生成器',
                        link: 'https://snippet-generator.app/'
                    },
                    {
                        text: 'markdown表格生成器',
                        link: 'https://tableconvert.com/zh-CN/markdown-generator'
                    },
                ]
            },
            {
                text: '写代码💻',
                children: [
                    '/coding/js/js.md',
                    '/coding/css/css.md',
                    '/coding/html/html.md',
                    '/coding/webpack/webpack.md',
                    '/coding/vue/vue.md',
                    '/coding/cpp/cpp.md',
                    '/coding/wow/wow.md'
                ],
            },

            {
                text: '8股文',
                children: [
                    '/8/survival/survival.md',
                    '/8/security.md',
                    '/8/browser.md',
                    '/8/se.md',
                ]
            },

        ],
    },
    plugins: [
        [
            '@vuepress/plugin-search',
            {
                locales: {
                    '/': {
                        placeholder: 'Search',
                    },
                    '/zh/': {
                        placeholder: '搜索',
                    },
                },
            },
        ],
        [
            'archive',
            {
                //需要排除的页面url，在该数组里面的路径，都不会被统计
                excludes: ['404.html'],
                //当某篇文章没有标题时，将使用下面值进行替换
                noTitle: '暂时没有标题配置'
            }
        ],
        comment({
            // 插件选项
            type: "waline",
            serverURL: "https://comment-o91anx0kl-kaiyan-zhang.vercel.app/"
        }),
    ],
}
